package com.cs.framework.ui.bo;

import com.cs.framework.jdbc.common.dto.BaseDto;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 页面控件数据封装类
 * 
 * @author hedongzhou
 * 
 */
public class UIData extends BaseDto {

	private static final long serialVersionUID = -3096429937693903753L;

	/**
	 * 数据
	 */
	private Object data;

	/**
	 * 条数
	 */
	@JsonInclude(Include.NON_NULL)
	private Integer count;

	public UIData() {
	}

	public UIData(Object data) {
		this.data = data;
	}

	public UIData(Object data, Integer count) {
		this.data = data;
		this.count = count;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

}
